<?php /* Smarty version 2.6.26, created on 2015-07-13 11:28:04
         compiled from add.php */ ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>提交问题</title>
</head>
<body>
	<h1>提问</h1>
	<form method="post">
		<table width="100%" border="1">
			<tr>
			<td>分类</td>
				<td>
					<select name="category_id">
						<?php $_from = $this->_tpl_vars['category']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['k'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['k']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['v']):
        $this->_foreach['k']['iteration']++;
?>
							<option value="<?php echo $this->_tpl_vars['v']['id']; ?>
">
								<?php echo $this->_tpl_vars['v']['cname']; ?>

							</option>
						<?php endforeach; endif; unset($_from); ?>
					</select>
				</td>
			</tr>
			<tr>
				<td>标题</td>
				<td>
					<input type="text" name="title">
				</td>
			</tr>
			<tr>
				<td>内容</td>
				<td>
					<textarea name="content" id="" cols="30" rows="10"></textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="submit" value="发表">
				</td>
			</tr>
		</table>
	</form>
</body>
</html>